// import Login from '@apps/login/index'
// import Index from '@apps/index/index'
// import UserInfo from '@pages/userManage/index'
// import MenuManage from '@pages/menuManage/index'
// import RoleManage from '@pages/roleManage/index'
// import GoodSource from '@pages/goodManage/goodSource'
// import GoodInfo from '@pages/goodManage/goodInfo'
// import GoodProduct from '@pages/goodManage/goodProduct'
// import NotFound from '@pages/notFound/index'
// import Home from '@pages/home/index'
// import PowerManage from "@pages/powerManage/index"
// import GoodMove from '@apps/index/pages/moveManage/moveInfo'
// import Log from '@pages/logManage/log'

import {lazyLoad} from "@comm/lazyLoad"
// 懒加载
const Font = lazyLoad(() => import('@apps/frontDesk/index'));
const Index = lazyLoad(() => import('@apps/index/index'));
const Login = lazyLoad(() => import('@apps/login/index'));
const UserInfo = lazyLoad(() => import('@pages/userManage/index'));
const MenuManage = lazyLoad(() => import('@pages/menuManage/index'));
const RoleManage = lazyLoad(() => import('@pages/roleManage/index'));
const GoodSource = lazyLoad(() => import('@pages/goodManage/goodSource'));
const GoodInfo = lazyLoad(() => import('@pages/goodManage/goodInfo'));
const GoodProduct =  lazyLoad(() => import('@pages/goodManage/goodProduct'));
const GoodRecall = lazyLoad(() => import('@pages/goodManage/goodRecall'));
const NotFound =  lazyLoad(() => import('@pages/notFound/index'));
const Home =  lazyLoad(() => import('@pages/home/index'));
const PowerManage =  lazyLoad(() => import('@pages/powerManage/index'));
const GoodMove =  lazyLoad(() => import('@pages/moveManage/moveInfo'));
const Log =  lazyLoad(() => import('@pages/logManage/log'));
const Supplier =  lazyLoad(() => import('@apps/index/pages/company/supplier'));
const Distributor =  lazyLoad(() => import('@apps/index/pages/company/distributor'));
const Sgs =  lazyLoad(() => import('@apps/index/pages/company/sgs'));
const SaleMap =  lazyLoad(() => import('@pages/moveManage/saleMap'));
const GoodInspect = lazyLoad(() => import('@pages/goodManage/goodInspection'));
const Notice = lazyLoad(() => import('@pages/notice/index'));
const GoodDetail = lazyLoad(() => import("@pages/goodManage/goodDetail"))
const FlowChart = lazyLoad(() => import("@pages/dataView/flowChart/index"))
// 一级路由
export const routerRoot: any[] = [
    {
       component:Font,
       path:"/"
    },
    {
        component:Login,
        path:"/login.html"
    },
    {
        component:Index,
        path:"/index.html",
    }
]

export const tabs:any = {
    "notfound":  {component:NotFound},
    "home":{component:Home,path:"/home",},
    "userManage":{
        component:UserInfo,
        path:"/home/usermanage/user",
    },
    "powerList":{
        component:PowerManage,
        path:"/home/powermanage",
    },
    "menuList":{
        component:MenuManage,
        path:"/home/menumanage",
    },
    "roleList":{
        component:RoleManage,
        path:"/home/rolemanage",
    },
    
    "goodSource": {
        component:GoodSource,
        path:"/home/goodmanage/source",
    },
    "goodInfo":{
        component:GoodInfo,
        path:"/home/goodmanage/info",
    },
    "goodDetail":{
        component:GoodDetail,
        path:"/home/goodmanage/detail",
    },
    "goodProduct": {
        component:GoodProduct,
        path:"/home/goodmanage/product",
    },
    "goodInspect": {
        component:GoodInspect,
        path:"/home/goodmanage/product",
    },
    "moveInfo": {
        component:GoodMove,
        path:"/home/goodmanage/move",
    },
    "logInfo": {
        component:Log,
        path:"/home/logmanage/loginfo",
    },
    "supplier": {
        component:Supplier,
        path:"/home/busi/suppliermanage",
    },
    "distr": {
        component:Distributor,
        path:"/home/busi/distrmanage",
    },
    "sale": {
        component:SaleMap,
        path:"/home/busi/distrmanage",
    },
    "sgs": {
        component:Sgs,
        path:"/home/busi/sgs",
    },
    "recall": {
        component:GoodRecall,
        path:"/home/goodmanage/recall",
    },
    "notice": {
        component:Notice,
        path:"/home/root/notice",
    },
    "flowchart": {
        component:FlowChart,
        path:"/home/dataview/flowchart",
    }
   
}